package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.ActiveUserTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class ActiveUserTabService implements BaseInterface<ActiveUserTab> {

//	private BaseDao<ActiveUserTab> activeUserTabDao = SpringBeanFactory.activeUserTabDao;
	private BaseDao<ActiveUserTab> activeUserTabDao;

	public ActiveUserTab get(Integer id) throws Exception {
		return activeUserTabDao.get(id);
	}

	public List<ActiveUserTab> getAll() throws Exception {
		return activeUserTabDao.getAll();
	}

	public ActiveUserTab get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<ActiveUserTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(ActiveUserTab obj) throws Exception {
		activeUserTabDao.save(obj);
	}

	public void update(ActiveUserTab obj) throws Exception {

	}

	public void delete(ActiveUserTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<ActiveUserTab> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return activeUserTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		activeUserTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return activeUserTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<ActiveUserTab> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return activeUserTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		activeUserTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return activeUserTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	public void setActiveUserTabDao(BaseDao<ActiveUserTab> activeUserTabDao) {
		this.activeUserTabDao = activeUserTabDao;
	}

}